<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{


    protected $fillable = ['good_id','goods_name','goods_number','price','order_type','user_id','username','order_number','order_payment','status','payment_status','order_ship'];


    public function good(){

        return $this->hasOne('App\Models\Good','id','good_id');
    }

    public function user(){

        return $this->hasOne('App\User','id','user_id');
    }
}
